package com.elong.businesstravel.protocol.hotel;

import org.apache.http.Header;
import org.json.JSONObject;

import com.elong.businesstravel.protocol.baseresponse.BaseELongJsonHttpResponse;

public class AddCollectionResponse extends BaseELongJsonHttpResponse {

	protected String messageString = "";
	protected int status = 0;
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			JSONObject mainJsonObject) throws Throwable {
		JSONObject responseJsonObject = mainJsonObject.optJSONObject("response");
		if(null != responseJsonObject){
			messageString = responseJsonObject.optString("msg");
			status = responseJsonObject.optInt("status");
		}
	}

}
